import Axios from '../utils/axios'
import api from '../api'
//查询
function getVenuesPageList(limit: number, name: string, page: number,count:number){
    return Axios.post(api.changguan.PageList_venues,{limit,name,page,count})
}
//新增
// interface VenueInfo {
//     address: string;
//     capacity: number;
//     createTime: string;
//     deleted: string;
//     email: string;
//     id: number;
//     image: string;
//     introduce: string;
//     name: string;
//     phone: number;
//     state: number;
//     updateTime: string;
//     useto: number;
//     vecomment: string;
// }
function addVenues(obj: object) {
    return Axios.post(api.changguan.add_venues, obj)
}
//删除
function deleteIdVenues(id:number){
    return Axios.get(api.changguan.delete_id_venues+"/"+id)
}

export default {
    getVenuesPageList,
    deleteIdVenues,
    addVenues
}

